package com.paypal.android.a.a;

import com.paypal.android.a.o;
import java.math.BigDecimal;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;

public final class a
{
  private BigDecimal a;
  private String b;

  public static a a(Element paramElement)
  {
    if (paramElement == null)
      return null;
    a locala = new a();
    NodeList localNodeList1 = paramElement.getElementsByTagName("code");
    if (localNodeList1.getLength() != 1)
      return null;
    locala.b = o.a(((Element)localNodeList1.item(0)).getChildNodes());
    NodeList localNodeList2 = paramElement.getElementsByTagName("amount");
    if (localNodeList2.getLength() != 1)
      return null;
    locala.a(o.a(((Element)localNodeList2.item(0)).getChildNodes()));
    return locala;
  }

  public final BigDecimal a()
  {
    return this.a;
  }

  public final void a(String paramString)
  {
    try
    {
      this.a = new BigDecimal(paramString);
      return;
    }
    catch (NumberFormatException localNumberFormatException)
    {
      this.a = new BigDecimal("0.0");
    }
  }

  public final String b()
  {
    return this.b;
  }

  public final void b(String paramString)
  {
    this.b = paramString;
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.paypal.android.a.a.a
 * JD-Core Version:    0.6.2
 */